home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ispell40.lha / ispell-4.0 / configure.in < prev    next >
Text File  |  1993-05-31  |  2KB  |  79 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(ispell.c)
  3. AC_PROG_CC
  4. AC_GCC_TRADITIONAL
  5. AC_PROG_INSTALL
  6.  
  7. AC_USG
  8. if test "z$USG" = "z" ; then
  9.    echo checking for BSD
  10.    ( test -f /vmunix || test -f /sdmach || test -f /../../mach ) && AC_DEFINE(BSD)
  11. fi
  12.  
  13. CHARSET="c-generic.c"
  14. AC_PROGRAM_CHECK(i386_host_p, i386, t, nil)
  15. if test "${i386_host_p}" = "t" && i386 > /dev/null 2>&1; then
  16.    CHARSET="c-ibmpc.c"
  17. fi
  18.  
  19. # Systems that have -ltermlib should use that before -ltermcap (e.g. SVR4)
  20. found_termlib=''
  21. for termlib in termlib termcap terminfo curses ; do
  22.    AC_HAVE_LIBRARY(${termlib}, [LIBS="${LIBS} -l${termlib}"])
  23.    case " ${LIBS} " in
  24.       *" -l${termlib} "* ) found_termlib=t; break ;;
  25.    esac
  26. done
  27. if test ".${found_termlib}" = "." ; then 
  28.    AC_DEFINE(NO_TERMCAP)
  29. fi
  30.  
  31. AC_HAVE_LIBRARY(-lBSD, [LIBS="${LIBS} -lBSD"])
  32. AC_HAVE_LIBRARY(-lc, [LIBS="${LIBS} -lc"])
  33.  
  34. # Needed by Solaris 2.x to resolve references in libucb.  (and maybe other
  35. # SVR4 systems need this too?)
  36. AC_HAVE_LIBRARY(-lelf, [LIBS="${LIBS} -lelf"])
  37.  
  38. # Needed for SVR4
  39. my_LIBS_save="${LIBS}"
  40. LIBS="${LIBS} -L/usr/ucblib"
  41. AC_HAVE_LIBRARY(-lucb, [LIBS="${LIBS} -lucb"], [LIBS="${my_LIBS_save}"])
  42. case " ${LIBS} " in
  43.    *' -lucb '* ) 
  44.       echo "*** Note: You may need to set LD_LIBRARY_PATH or LD_PATH to" 1>&2
  45.       echo "*** contain /usr/ucblib for the ispell executables to work." 1>&2
  46.       echo "*** (don't blame us, this is SVR4 lossage)" 1>&2
  47.      ;;
  48. esac   
  49.  
  50. AC_RETSIGTYPE
  51. AC_CONST
  52. AC_INLINE
  53. AC_ALLOCA
  54.  
  55. AC_HAVE_HEADERS(malloc.h termios.h termio.h string.h strings.h)
  56.  
  57. AC_COMPILE_CHECK([checking for broken TIOCGWINSZ],[
  58. #include <sys/ioctl.h>
  59. #ifdef HAVE_TERMIOS_H
  60. #include <termios.h>
  61. #else /* ! HAVE_TERMIOS_H */
  62. #ifdef HAVE_TERMIO_H
  63. #include <termio.h>
  64. #else /* ! HAVE_TERMIO_H */
  65. #include <sgtty.h>
  66. #endif
  67. #endif
  68. ],[
  69. #ifdef TIOCGWINSZ
  70. struct winsize    wsize;
  71. #endif /* TIOCGWINSZ */
  72. ],
  73. [:],
  74. [AC_DEFINE(BROKEN_TIOCGWINSZ)]
  75. )
  76.  
  77. AC_SUBST(CHARSET)
  78. AC_OUTPUT(Makefile)
  79.